3.2.30 \(\int \frac {a c+b c x^2}{(a+b x^2)^2} \, dx\) [130]

Optimal. Leaf size=25 \[ \frac {c \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{\sqrt {a} \sqrt {b}} \]

[Out]

c*arctan(x*b^(1/2)/a^(1/2))/a^(1/2)/b^(1/2)

________________________________________________________________________________________

Rubi [A]
time = 0.01, antiderivative size = 25, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.100, Rules used = {21, 211} \begin {gather*} \frac {c \text {ArcTan}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{\sqrt {a} \sqrt {b}} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(a*c + b*c*x^2)/(a + b*x^2)^2,x]

[Out]

(c*ArcTan[(Sqrt[b]*x)/Sqrt[a]])/(Sqrt[a]*Sqrt[b])

Rule 21

Int[(u_.)*((a_) + (b_.)*(v_))^(m_.)*((c_) + (d_.)*(v_))^(n_.), x_Symbol] :> Dist[(b/d)^m, Int[u*(c + d*v)^(m +
 n), x], x] /; FreeQ[{a, b, c, d, n}, x] && EqQ[b*c - a*d, 0] && IntegerQ[m] && ( !IntegerQ[n] || SimplerQ[c +
 d*x, a + b*x])

Rule 211

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[a/b, 2]/a)*ArcTan[x/Rt[a/b, 2]], x] /; FreeQ[{a, b}, x]
&& PosQ[a/b]

Rubi steps

\begin {align*} \int \frac {a c+b c x^2}{\left (a+b x^2\right )^2} \, dx &=c \int \frac {1}{a+b x^2} \, dx\\ &=\frac {c \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{\sqrt {a} \sqrt {b}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.00, size = 25, normalized size = 1.00 \begin {gather*} \frac {c \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{\sqrt {a} \sqrt {b}} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(a*c + b*c*x^2)/(a + b*x^2)^2,x]

[Out]

(c*ArcTan[(Sqrt[b]*x)/Sqrt[a]])/(Sqrt[a]*Sqrt[b])

________________________________________________________________________________________

Maple [A]
time = 0.08, size = 17, normalized size = 0.68

method result size
default \(\frac {c \arctan \left (\frac {b x}{\sqrt {a b}}\right )}{\sqrt {a b}}\) \(17\)
risch \(-\frac {c \ln \left (b x +\sqrt {-a b}\right )}{2 \sqrt {-a b}}+\frac {c \ln \left (-b x +\sqrt {-a b}\right )}{2 \sqrt {-a b}}\) \(43\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((b*c*x^2+a*c)/(b*x^2+a)^2,x,method=_RETURNVERBOSE)

[Out]

c/(a*b)^(1/2)*arctan(b*x/(a*b)^(1/2))

________________________________________________________________________________________

Maxima [A]
time = 0.50, size = 16, normalized size = 0.64 \begin {gather*} \frac {c \arctan \left (\frac {b x}{\sqrt {a b}}\right )}{\sqrt {a b}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*c*x^2+a*c)/(b*x^2+a)^2,x, algorithm="maxima")

[Out]

c*arctan(b*x/sqrt(a*b))/sqrt(a*b)

________________________________________________________________________________________

Fricas [A]
time = 0.93, size = 69, normalized size = 2.76 \begin {gather*} \left [-\frac {\sqrt {-a b} c \log \left (\frac {b x^{2} - 2 \, \sqrt {-a b} x - a}{b x^{2} + a}\right )}{2 \, a b}, \frac {\sqrt {a b} c \arctan \left (\frac {\sqrt {a b} x}{a}\right )}{a b}\right ] \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*c*x^2+a*c)/(b*x^2+a)^2,x, algorithm="fricas")

[Out]

[-1/2*sqrt(-a*b)*c*log((b*x^2 - 2*sqrt(-a*b)*x - a)/(b*x^2 + a))/(a*b), sqrt(a*b)*c*arctan(sqrt(a*b)*x/a)/(a*b
)]

________________________________________________________________________________________

Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 54 vs. \(2 (24) = 48\).
time = 0.09, size = 54, normalized size = 2.16 \begin {gather*} c \left (- \frac {\sqrt {- \frac {1}{a b}} \log {\left (- a \sqrt {- \frac {1}{a b}} + x \right )}}{2} + \frac {\sqrt {- \frac {1}{a b}} \log {\left (a \sqrt {- \frac {1}{a b}} + x \right )}}{2}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*c*x**2+a*c)/(b*x**2+a)**2,x)

[Out]

c*(-sqrt(-1/(a*b))*log(-a*sqrt(-1/(a*b)) + x)/2 + sqrt(-1/(a*b))*log(a*sqrt(-1/(a*b)) + x)/2)

________________________________________________________________________________________

Giac [A]
time = 1.30, size = 16, normalized size = 0.64 \begin {gather*} \frac {c \arctan \left (\frac {b x}{\sqrt {a b}}\right )}{\sqrt {a b}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*c*x^2+a*c)/(b*x^2+a)^2,x, algorithm="giac")

[Out]

c*arctan(b*x/sqrt(a*b))/sqrt(a*b)

________________________________________________________________________________________

Mupad [B]
time = 0.03, size = 17, normalized size = 0.68 \begin {gather*} \frac {c\,\mathrm {atan}\left (\frac {\sqrt {b}\,x}{\sqrt {a}}\right )}{\sqrt {a}\,\sqrt {b}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a*c + b*c*x^2)/(a + b*x^2)^2,x)

[Out]

(c*atan((b^(1/2)*x)/a^(1/2)))/(a^(1/2)*b^(1/2))

________________________________________________________________________________________